package com.morn.fanfou;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;

import com.morn.fanfou.fragment.StatusListFragment;

public class StatusListActivity extends FragmentActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		StatusListFragment statusListFragment = new StatusListFragment();
		statusListFragment.setArguments(getIntent().getExtras());
		getSupportFragmentManager().beginTransaction()
				.add(android.R.id.content, statusListFragment).commit();

	}

	public void clickLeftButton(View v) {
		finish();
	}

	public void clickRightButton(View v) {
		Intent intent = new Intent(this, MainActivity.class);
		intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(intent);
		finish();

	}

}
